package com.example.demo.models.admin;

import com.example.demo.models.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

/**
 * @author lucifer
 * @since 2024-01-31-23:43
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "activity_admins_logs")
public class ActivityAdminLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * auto generator start
     **/
    @Column(name = "activity_id", comment = "活动id")
    private String activity_id;

    @Column(name = "number", comment = "操作人")
    private String number;

    @Column(name = "data", comment = "执行操作")
    private String data;

    @Column(name = "result", comment = "操作结果")
    private String result;

    @Column(name = "rank", comment = "当前操作的等级")
    private String rank;

    @Column(name = "status", comment = "这条记录的状态")
    private String status;


    /**
     * auto generator end
     **/
    @Repository
    public static class Model extends BaseModel<ActivityAdminLog, Long> {
        @Override
        protected boolean softDeleting() {
            return true;
        }
    }
}
